﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Collections;
using System.Data;

namespace GPCSC.Web.sjs
{
    public class GGH_T
    {
        DataSet ds = new DataSet();
        Hashtable htable = new Hashtable();

        public GGH_T()
        { 
            
        }
        /// <summary>
        /// 
        /// </summary>
        /// <param name="userid"></param>
        /// <returns></returns>
        public DataSet F_bound(string userid,string type)
        {
            ds.Clear();
            htable.Clear();
            htable.Add("@lgid",userid);
            htable.Add("@type",type);
            ds = new SqlReadXml().ReaderDataSet("sel_GGH_table_bylgid",htable);

            return ds;
        }

        public DataSet F_boundIsZuoFei(string userid, string type)
        {
            ds.Clear();
            htable.Clear();
            htable.Add("@lgid", userid);
            htable.Add("@type", type);
            ds = new SqlReadXml().ReaderDataSet("sel_GGH_table_bylgidiszuofei", htable);

            return ds;
        }
         
    }
}